package ComputerOrganization;

/**
 * @Author maojiangyue
 * @Date 2025/10/10
 * @Description
 */
public class ComputerSimulation {
    public static void main(String[] args) {
        //收集计算机组成的各个部件
        CPU cpu = new CPU("Intel i9-14900KS", 6.2);
        Memory memory = new Memory(32, "DDR5");
        Motherboard motherboard = new Motherboard("Z790", "Intel Z790");
        Monitor monitor = new Monitor("LG", 27);

        //组装电脑
        Computer myPC = new Computer(cpu, memory, motherboard, monitor);

        myPC.powerOn();

        myPC.runProgram("CUST-Java-Application");

        myPC.shutdown();
    }
}
